package com.itheima.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.domain.combat.QuestionSoul;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;

public interface QuestionSoulMapper extends BaseMapper<QuestionSoul> {
    @Insert("insert into tb_question_soul (id, question,questionnaire_id) values (null, #{question}, #{questionnaireId})")
    @Options(useGeneratedKeys=true, keyProperty="id", keyColumn="id")
    void addQuestion(QuestionSoul questionSoul);
}
